HackerRank Common Child
解答
code: python
import math
import os
import random
import re
import sys
#
# Complete the 'commonChild' function below.
#
# The function is expected to return an INTEGER.
# The function accepts following parameters:
# 1. STRING s1
# 2. STRING s2
#
def commonChild(s1, s2):
l_s1 = len(s1)
l_s2 = len(s2)
dp = [0 * (l_s1 + 1) for i in range(l_s2 + 1)] for i in range(l_s1):
for j in range(l_s2):
else:
if __name__ == '__main__':
s1 = input()
s2 = input()
result = commonChild(s1, s2)
fptr.write(str(result) + '\n')
fptr.close()
テーマ
メモ
https://www.youtube.com/watch?v=ItRZRx8kvwY
https://scrapbox.io/files/61cfad0e255b500022d944cf.png